import Ajax from './ajax'
import mockAjax from './mockAjax'

// 请求三级分类
export const reqCategoryList = () => {
    return Ajax({
        url: '/product/getBaseCategoryList',
        method: 'get'
    })
}

// 轮播图
export const reqBannerList = () => {
    return mockAjax({
        url: '/banner',
        method: 'get'
    })
}


// 下面的轮播图
export const reqFloorList = () => {
    return mockAjax({
        url: '/floor',
        method: 'get'
    })
}

// 搜索商品
// /api/list
// POST

export const reqGoodsListInfo = (searchParams) =>{
        return Ajax({
            url:'/list',
            method:'post',
            data:searchParams
        })
}

//测试接口请求函数
// reqCategoryList()
// reqGoodListInof({})